package com.entity;



/**
 * @program: ssm
 * @description: 璐墿杞�
 * @author: zl
 * @create: 2022-05-17 14:57
 **/


public class Cart   {
	private int cart_id;
    private int good_num;
    private String good_name;
    private  int shop_id;
    private int price;
    private  int good_id;
    private  int user_id;
    private  String img;
    public Cart(int cart_id, int good_num, String good_name, int shop_id, int price, int good_id, int user_id,
			String img) {
		super();
		this.cart_id = cart_id;
		this.good_num = good_num;
		this.good_name = good_name;
		this.shop_id = shop_id;
		this.price = price;
		this.good_id = good_id;
		this.user_id = user_id;
		this.img = img;
	}
    
	public Cart(int cart_id, int good_num, int shop_id) {
		super();
		this.cart_id = cart_id;
		this.good_num = good_num;
		this.shop_id = shop_id;
	}

	public Cart(int cart_id, int good_num, int price,String img) {
		super();
		this.cart_id = cart_id;
		this.good_num = good_num;
		this.price=price;
		this.img=img;
	}
	
	@Override
	public String toString() {
		return "Cart [cart_id=" + cart_id + ", good_num=" + good_num + ", good_name=" + good_name + ", shop_id="
				+ shop_id + ", price=" + price + ", good_id=" + good_id + ", user_id=" + user_id + ", img=" + img + "]";
	}





    public int getGood_num() {
        return good_num;
    }

    public int getCart_id() {
		return cart_id;
	}

	public void setCart_id(int cart_id) {
		this.cart_id = cart_id;
	}

	public void setGood_num(int good_num) {
        this.good_num = good_num;
    }

    public String getGood_name() {
        return good_name;
    }

    public void setGood_name(String good_name) {
        this.good_name = good_name;
    }

    public int getShop_id() {
        return shop_id;
    }

    public void setShop_id(int shop_id) {
        this.shop_id = shop_id;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getGood_id() {
        return good_id;
    }

    public void setGood_id(int good_id) {
        this.good_id = good_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
    
    public Cart() {}

}
